package com.farm.shop.service.impl;

import com.farm.shop.dao.FarmDishDao;
import com.farm.shop.domain.FarmDishDO;
import com.farm.shop.service.FarmDishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class FarmDishServiceImpl implements FarmDishService {
    @Autowired
    private FarmDishDao farmDishDao;

    @Override
    public FarmDishDO get(Long id) {
        return farmDishDao.get(id);
    }

    @Override
    public List<FarmDishDO> list(Map<String, Object> map) {
        return farmDishDao.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return farmDishDao.count(map);
    }

    @Override
    public int save(FarmDishDO farmDish) {
        return farmDishDao.save(farmDish);
    }

    @Override
    public int update(FarmDishDO farmDish) {
        return farmDishDao.update(farmDish);
    }

    @Override
    public int remove(Long id) {
        return farmDishDao.remove(id);
    }

    @Override
    public int batchRemove(Long[] ids) {
        return farmDishDao.batchRemove(ids);
    }

    @Override
    public List<FarmDishDO> search(String keyword) {
        return farmDishDao.search(keyword);
    }

    @Override
    public List<FarmDishDO> searchName(Map<String, Object> map) {
        return farmDishDao.searchName(map);
    }

    @Override
    public int searchNameCount(Map<String, Object> map) {
        return farmDishDao.searchNameCount(map);
    }

}
